package mlz.a_packingClass;

//包装类的类型转换
/*
static int	parseInt(String s) String -> int
static String valueOf(int i)  int -> String
 */
public class IntegerDemo03 {
    public static void main(String[] args) {
        //字符串转数值类型
        String ageStr = "18";
        int age = Integer.parseInt(ageStr);

        //数值类型转字符串
        String str = String.valueOf(age);
    }
}
